package apiday04homework;

import java.io.File;

public class DeleteDirDemo {
    public static void main(String[] args) {
        /*
        File dir= new File("a");
        if (dir.exists()) {
            dir.delete();
            System.out.println("删除成功");
        }else {
            System.out.println("删除失败");
        }

         */
        File dir = new File("a");
        if (dir.exists()) {
            dir.delete();
            System.out.println("删除成功");
        }else {
            System.out.println("删除失败");
        }
        }
    }

